package com.byd.sealmanage.dao.mybatis;

import com.byd.sealmanage.config.CommonMapper;
import com.byd.sealmanage.modal.bo.SearchUserVO;
import com.byd.sealmanage.modal.po.TbUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbUserMapper extends CommonMapper<TbUser> {

    /**
     * 根据工号查询用户信息
     * @param jobNumber
     * @return
     */
    TbUser getUserByJobNumber(@Param("jobNumber") String jobNumber,@Param("status") String status);

    /**
     * 查找地区管理员
     * @param place
     * @return
     */
    TbUser selectPlaceManager(String place);

    /**
     * 查询人员接口的数据数量
     * @param searchUserVO
     * @return
     */
    int selectSearchPeopleCount(SearchUserVO searchUserVO);

    /**
     * 查询人员接口数据
     * @param searchUserVO
     * @return
     */
    List<TbUser> selectSearchPeopleData(SearchUserVO searchUserVO);

}